<template>
	<div>
		<img class="empty" src="../../../public/img/empty.png" >
		<div>{{text}}</div>
		<el-button v-if="btntext" type="success" size="medium" @click="emptyClick">{{btntext}}</el-button>
	</div>
</template>

<script>
	export default{
		props:{
			text: {
				type: String,
				default: '暂无数据'
			},
			btntext: {
				type: String,
				default: ''
			}
		},
		data(){
			return{
			}
		},
		methods:{
			emptyClick(){
				this.$emit('emptyClick')
			}
		}
	}
</script>

<style scoped="">
	.empty{
		width: 84px;
		margin-top: 30px;
	}
</style>
